package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_pms_z_g database table.
 * 
 */
@Entity
@Table(name="per_pms_z_g")
@NamedQuery(name="PerPmsZG.findAll", query="SELECT p FROM PerPmsZG p")
public class PerPmsZG implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int zgid;

	private String zgwht;

	//bi-directional many-to-one association to PerPmsFun
	@ManyToOne
	@JoinColumn(name="FUNID")
	private PerPmsFun perPmsFun;

	//bi-directional many-to-one association to PerPmsPot
	@ManyToOne
	@JoinColumn(name="POTID")
	private PerPmsPot perPmsPot;

	public PerPmsZG() {
	}

	public int getZgid() {
		return this.zgid;
	}

	public void setZgid(int zgid) {
		this.zgid = zgid;
	}

	public String getZgwht() {
		return this.zgwht;
	}

	public void setZgwht(String zgwht) {
		this.zgwht = zgwht;
	}

	public PerPmsFun getPerPmsFun() {
		return this.perPmsFun;
	}

	public void setPerPmsFun(PerPmsFun perPmsFun) {
		this.perPmsFun = perPmsFun;
	}

	public PerPmsPot getPerPmsPot() {
		return this.perPmsPot;
	}

	public void setPerPmsPot(PerPmsPot perPmsPot) {
		this.perPmsPot = perPmsPot;
	}

}